const epoch = 2021;
let year = 2028;
let x = year - epoch;
// console.log(x);
let y = x % 12;
switch (y) {
    case 0:
        console.log(year + "年是鼠年");
        break;
    case 1:
        console.log(year + "年是牛年");
        break;
    case 2:
        console.log(year + "年是虎年");
        break;
    case 3:
        console.log(year + "年是兔年");
        break;
    case 4:
        console.log(year + "年是龙年");
        break;
    case 5:
        console.log(year + "年是蛇年");
        break;
    case 6:
        console.log(year + "年是马年");
        break;
    case 7:
        console.log(year + "年是羊年");
        break;
    case 8:
        console.log(year + "年是猴年");
        break;
    case 9:
        console.log(year + "年是鸡年");
        break;
    case 10:
        console.log(year + "年是狗年");
        break;
    case 11:
        console.log(year + "年是猪年");
        break;
}